package com.cc8w.admins.service;


import com.cc8w.admins.mapper.RoleMapper;
import com.cc8w.admins.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("roleService")
@Transactional
public class RoleService {
    @Autowired
    @Qualifier("roleMapper")
    private RoleMapper roleMapper;

    public List queryRolesByUserName(String userName){
        return roleMapper.queryRolesByUserName(userName);
    }
}
